package com.marvels.dubbo.externalservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.marvels.dubbo.externalservice.service.SendSmsService;

import net.sf.json.JSONObject;

@RestController
@RequestMapping("dubbo/external/Sms/api")
public class SmsController {
	@Autowired
	private SendSmsService smsService;

	@RequestMapping("sendSms")
	@ResponseBody
	public String sendSms(@RequestBody JSONObject json) {
		return smsService.sendSms(json);
	}
}
